/*
 * @Date: 2024-04-23 15:47:23
 * @LastEditors: 王帅 1677191300@qq.com
 * @LastEditTime: 2024-06-26 17:48:05
 * @FilePath: \pcVue3\src\main.ts
 * @Description: 
 */

import { createApp } from "vue";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import router from "./router/index";
import Unicon from "vue-unicons";
import directives from "@/directives/index"
import comCustom from "@/components/index"
import { createPinia } from "pinia";
const pinia = createPinia();
console.log(import.meta.env,"环境变量")
import {
  uniLayerGroupMonochrome,
  uniCarWash,
  uniAngleDown,
  uniAlignJustify,
  uniCompressArrows, 
  uniExpandArrowsAlt
} from "vue-unicons/dist/icons";
Unicon.add([
  uniLayerGroupMonochrome,
  uniCarWash,
  uniAngleDown,
  uniAlignJustify,
  uniCompressArrows,
  uniExpandArrowsAlt
]);
let app = createApp(App);
app.use(ElementPlus,{locale:zhCn});
app.use(router);
app.use(pinia);
app.use(directives);

app.use(Unicon, {
  fill: "deeppink",
  height: 24,
  width: 24,
});
app.use(comCustom);
app.mount("#app");
